package edu.cdnu.pojo;

/**
 * 课程--学生 对应关系表的映射类
 * @author ASUS AsingZ
 */
public class CourseStudentPojo {
	
	private Integer id;
	 /**
	  * 代表这门课的分数
	 */
	private Integer score;
	/**
	* 访问次数
	*/
	private Integer visitTime;
	/**
	* 学生id
	*/
	private Integer studentId;
	/**
	 * 课程id
	 */
	private Integer courseId;
	
	public CourseStudentPojo() {
		super();
	}
	/**
	 * 带id
	 * @param id
	 * @param score
	 * @param visitTime
	 * @param studentId
	 * @param courseId
	 */
	public CourseStudentPojo(Integer id, Integer score, Integer visitTime, Integer studentId, Integer courseId) {
		super();
		this.id = id;
		this.score = score;
		this.visitTime = visitTime;
		this.studentId = studentId;
		this.courseId = courseId;
	}
	/**
	 * 不带id
	 * @param score
	 * @param visitTime
	 * @param studentId
	 * @param courseId
	 */
	public CourseStudentPojo(Integer score, Integer visitTime, Integer studentId, Integer courseId) {
		super();
		this.score = score;
		this.visitTime = visitTime;
		this.studentId = studentId;
		this.courseId = courseId;
	}
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getScore() {
		return score;
	}
	public void setScore(Integer score) {
		this.score = score;
	}
	public Integer getVisitTime() {
		return visitTime;
	}
	public void setVisitTime(Integer visitTime) {
		this.visitTime = visitTime;
	}
	public Integer getStudentId() {
		return studentId;
	}
	public void setStudentId(Integer studentId) {
		this.studentId = studentId;
	}
	public Integer getCourseId() {
		return courseId;
	}
	public void setCourseId(Integer courseId) {
		this.courseId = courseId;
	}
	
	@Override
	public String toString() {
		return "CourseStudentPojo [id=" + id + ", score=" + score + ", visitTime=" + visitTime + ", studentId="
				+ studentId + ", courseId=" + courseId + "]";
	}
}
